package advance.app.dao;

import advance.app.pojo.DepFileInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepFileInfoMapper {

    int saveDepFileInfo(DepFileInfo info);

    DepFileInfo getLatestInfoByType(@Param("depArea") String area,
                                    @Param("fileType") String fileType);

    DepFileInfo getLatestInfoByMid(Integer id);

    int updateDepFileInfo(DepFileInfo info);

    DepFileInfo getByTypeAndVer(@Param("depArea") String area,
                                @Param("depFileType") String fileType,
                                @Param("depFileName") String fileName);

    int deleteByTypeAndVer(@Param("depArea") String area,
                           @Param("depFileType") String fileType,
                           @Param("depFileName") String fileName);

    List<DepFileInfo> getInfoByAreaAndType(@Param("depArea") String area,
                                            @Param("depFileType") String fileType);


    List<DepFileInfo> getListByArea(@Param("depArea") String area);

    /*List<DepFileInfo> getListByAreaAndVer(@Param("depArea") String area,
                                          @Param("fileType") String fileType,
                                          @Param("version") String version);*/
}
